package com.wd.engine;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.log4j.PropertyConfigurator;
import org.quartz.SchedulerException;

import com.wd.shared.Configuration;
import com.wd.timer.CronTriggerRunner;

public class AlexaEntry {

	private static Log log = LogFactory.getLog(AlexaEntry.class);

	public static void main(String[] args) {
		PropertyConfigurator.configure("conf/log4j/log4j.properties");
		log.info("System file encoding -->"
				+ System.getProperty("file.encoding"));
		String s = Configuration.getInstance().getRunnerTime();
		log.info("Cron express -->" + s);
		CronTriggerRunner cron = new CronTriggerRunner();
		try {
			cron.task(s);
		} catch (SchedulerException e) {
			log.error(e);
		}
	}
}
